package name.as3.cmdFrameworks.addins.mediator
{
import flash.display.Sprite;
import flash.utils.SafeGlobalOwner;
import flash.utils.SafeGlobalProxy;

import name.as3.cmdFrameworks.interfaces.IFacade;
import name.as3.cmdFrameworks.interfaces.addins.IMediator;
import name.as3.cmdFrameworks.interfaces.addins.IMediatorAddin;

public class AbstractMediatorAddin extends SafeGlobalOwner implements IMediatorAddin
{
	private var m_facade:IFacade;
	/**
	 *
	 */
	public function AbstractMediatorAddin()
	{
	}
//==================================================================================================
// public
//==================================================================================================
	public function onAddMediator(contApp:Sprite, obMediator:IMediator):void
	{
	}
	/**
	 * 表面设置函数
	 */
	public function setFacade(value:IFacade, proxyGlobal:SafeGlobalProxy):void
	{
		m_facade = value;
		super.sg = proxyGlobal;
	}
	/**
	 * 表面获取函数
	 */
	public function get facade():IFacade
	{
		return m_facade;
	}
}
}